package com.tz.test.controller;

import com.tz.test.service.CountDownLatchService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author zhangky
 * @since 2020/4/27
 */
@RestController
@RequestMapping("/test")
public class CountDownLatchController {

    @Resource
    private CountDownLatchService countDownLatchService;

    @RequestMapping("/test1")
    public String test1() {
        countDownLatchService.test();
        return "index";
    }

}
